function request(parms){
	return new Promise((resolve,reject) => {
		console.log(parms)
		uni.showLoading({
			title:"加载中"
		})
		uni.request({
			...parms,
			success:({data}) => {
				resolve(data);
			},
			complete:() => {uni.hideLoading();}
		})
	})
}

export default request;

request({
	url:'',
	data:'',
	method:''
})